﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CatUtils.Utils.SpecialUtils.Html
{
    /// <summary>
    /// 处理html解码和加密
    /// </summary>
    public partial class HtmlHelper
    {   /// <summary>
        /// Html解码
        /// </summary>
        /// <param name="Html"></param>
        /// <returns></returns>
        public static string Decode(string Html)
        {
            return System.Web.HttpUtility.HtmlDecode(Html);
        }

        /// <summary>
        ///  Html编码
        /// </summary>
        /// <param name="Html"></param>
        /// <returns></returns>
        public string Encode(string Html)
        {
            return System.Web.HttpUtility.HtmlEncode(Html);
        }
    }
}